﻿namespace MetadataDesignerLibrary
{
    public class Counter
    {
        private int _start;

        public int Current { get; private set; }

        public Counter(int start)
        {
            _start = start;
            Current = _start;
        }

        public int Increment()
        {
            return ++Current;
        }

        public void Reset()
        {
            Current = _start;
        }
    }
}